/**
 * @description 统计处理组件触发的事件
 * @param  data 事件数据
 * @param {Object} vm Vue实例
 */
export const actionDis = (data, vm) => {
  if(data.type==vm.GLOBAL.TYPE_LINK_ACTIVE){
    vm.$router.push({name: 'goodsdetail', params: {id: data.value}});
  }else if(data.type==vm.GLOBAL.TYPE_LINK_CATEGORY){
    vm.$router.push({name: 'category-list', params: {category_id: data.value}});
  }else if(data.type==vm.GLOBAL.TYPE_LINK_SUBJECT){
    vm.$router.push({name: 'subject', params: {sub_id: data.value}});
  }
};
